package com.lxp.modules.gyy.controller;

import com.lxp.common.core.page.TableDataInfo;
import com.lxp.modules.gyy.domain.HrAttendance;
import com.lxp.modules.gyy.domain.vo.AuditParam;
import com.lxp.modules.gyy.service.HrAttendanceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/gyy/attendance")
@Api(tags = "工业云考勤接口")
@Slf4j
public class HrAttendanceController {
    @Resource
    private HrAttendanceService hrAttendanceService;

    @ApiOperation("获取所有考勤")
    @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = HrAttendance.class)))
    @GetMapping("/list")
    public TableDataInfo pageList(AuditParam param, TableDataInfo info) {
        return hrAttendanceService.pageList(param, info);
    }

}
